//
//  UIButton+Extension.swift
//  swift微博项目
//
//  Created by huodian on 16/9/23.
//  Copyright © 2016年 huodian. All rights reserved.
//

import UIKit

extension UIButton{
    
    convenience init(title:String,titleColor:UIColor,font:CGFloat) {
        
     self.init()
        
        self.setTitle(title, for: UIControlState.normal)
        
        self.titleLabel?.font = UIFont.systemFont(ofSize: font)
        
        self.setTitleColor(titleColor, for: UIControlState.normal)
        
        self.sizeToFit()
        
        
        
        
    }
    
    
}

